-- GENERATED SPELL FOR [Howling Wolvar Chieftain] --


function spell0_26826(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26826', 5310, 1)
end

function spell1_26826(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_26826', 10260, 1)
end

function Sorts_26826(pUnit, Event)
local choix_sorts_26826 = math.random(0, 1)
if choix_sorts_26826 == 0 then
pUnit:RegisterEvent('spell0_26826', 1, 1)
end
if choix_sorts_26826 == 1 then
pUnit:RegisterEvent('spell1_26826', 1, 1)
end
end

function mob26826_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26826', math.random(1500, 3000), 1)
end

function mob26826_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26826_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26826_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26826, 1, 'mob26826_Action')
RegisterUnitEvent(26826, 2, 'mob26826_Leave')
RegisterUnitEvent(26826, 3, 'mob26826_Kill')
RegisterUnitEvent(26826, 4, 'mob26826_Die')
